/*
 *  $TEAM_NAME Space Trader
 */
package presenters;

import models.StarSystem;
import views.StarSystemPanel;
import java.awt.event.MouseEvent;

/**
 * Handles the presentation of the star system.
 * @author bradley
 * @version 1.0
 */
public class StarSystemPresenter extends InteractivePresenter<StarSystemPanel> {
	/**
	 * field
	 */
	private final MapPresenter parent;

	/**
	 * field
	 */
	private final StarSystem system;

    /**
     * Default constructor
     * @param parent - the map presenter
     * @param system - the solar system
     * @param view - the view to present
     */
    public StarSystemPresenter(
    		MapPresenter parent, StarSystem system, StarSystemPanel view) {
    	//Set variables
        this.parent = parent;
        this.system = system;
        
        //Set up presenter
        view.addMouseListener(this);
        super.setView(view);
    }

    /**
     * Highlights the system when the mouse hovers over it
     * @param event - the mouse event
     */
    public void mouseEntered(MouseEvent event) {
        parent.highlightStarSystem(system);
    }
    
    /**
     * to string
     * @return string
     */
    public String toString() {
		return "";
	}
}
